// Moments 模块类型定义

// 心情状态枚举
export enum MoodType {
  HAPPY = 'happy',
  SAD = 'sad',
  EXCITED = 'excited',
  PEACEFUL = 'peaceful',
  ANXIOUS = 'anxious',
  GRATEFUL = 'grateful',
  THOUGHTFUL = 'thoughtful',
  NOSTALGIC = 'nostalgic'
}

// 动态/心事接口
export interface Moment {
  id: string
  content: string
  isFavorite: boolean
  createdTime: string
  createdAt: string
  mood?: MoodType
  images?: string[]
  tags?: string[]
  isPrivate: boolean
}

// 创建动态请求
export interface CreateMomentRequest {
  content: string
  mood?: MoodType
  images?: string[]
  tags?: string[]
  isPrivate?: boolean
}

// 更新动态请求
export interface UpdateMomentRequest {
  id: string
  content?: string
  mood?: MoodType
  images?: string[]
  tags?: string[]
  isPrivate?: boolean
}

// 分页查询动态请求
export interface MomentListRequest {
  page: number
  size: number
  mood?: MoodType
  tag?: string
  startDate?: string
  endDate?: string
}

// 分页响应 - 对应后端ResponsePage结构
export interface MomentListResponse {
  records: Moment[]
  total: number
  current: number
  size: number
}

// 心情统计
export interface MoodStats {
  mood: MoodType
  count: number
  percentage: number
}

// 标签统计
export interface TagStats {
  tag: string
  count: number
}

// Moments 展示风格类型
export type MomentStyle = 'modern' | 'vintage' | 'cute'

// Moments 风格信息
export interface MomentStyleInfo {
  key: MomentStyle
  name: string
  description: string
  icon: string
}